package com.ca.project;

import com.ca.project.core.Constants.CAConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * CAStudio启动类
 *
 * @PACKAGE_NAME: com.ca.project
 * @NAME: CAServerLauncher
 * @USER: ASUS
 * @DATE: 2023/8/28
 * @TIME: 下午 03:58
 **/
@SpringBootApplication(scanBasePackages = {CAConstants.BASE_COMPONENT_SCAN_PATH})
@ServletComponentScan(basePackages = CAConstants.BASE_COMPONENT_SCAN_PATH)
@EnableTransactionManagement
@MapperScan(basePackages = CAConstants.BASE_COMPONENT_SCAN_PATH + ".Server.Modules.**.Mapper")
public class CAServerLauncher {

    public static void main(String[] args) {
        SpringApplication.run(CAServerLauncher.class);
    }

}
